package com.hanthink.system.domain.pc;

import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.hanthink.common.annotation.Excel;
import com.hanthink.common.core.domain.BaseEntity;

/**
 * 故障类型对象 EM_FAULT_TYPE
 * 
 * @author hanthink
 * @date 2021-01-21
 */
public class EmFaultType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 工厂 */
    private String siteKey;

    /** 故障编码 */
    @Excel(name = "故障编码")
    private String faultCode;

    /** 部门 */
    private String depart;

    /** 设备编码 */
    private String eqCode;

    /** 设备型号 */
    private String eqModel;

    /** 故障描述 */
    @Excel(name = "故障描述")
    private String faultDesc;

    /** 故障原因 */
    @Excel(name = "故障原因")
    private String faultReson;

    /** 处理方法 */
    @Excel(name = "处理方法")
    private String dealMeans;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 故障ID */
    private Long id;

    /** 父id */
    private Long parentId;

    /** 祖级列表 */
    private String ancestors;
    
    /** 子数据 */
    private List<EmFaultCode> children;

    public void setSiteKey(String siteKey) 
    {
        this.siteKey = siteKey;
    }

    public String getSiteKey() 
    {
        return siteKey;
    }
    public void setFaultCode(String faultCode) 
    {
        this.faultCode = faultCode;
    }

    public String getFaultCode() 
    {
        return faultCode;
    }
    public void setDepart(String depart) 
    {
        this.depart = depart;
    }

    public String getDepart() 
    {
        return depart;
    }
    public void setEqCode(String eqCode) 
    {
        this.eqCode = eqCode;
    }

    public String getEqCode() 
    {
        return eqCode;
    }
    public void setEqModel(String eqModel) 
    {
        this.eqModel = eqModel;
    }

    public String getEqModel() 
    {
        return eqModel;
    }
    public void setFaultDesc(String faultDesc) 
    {
        this.faultDesc = faultDesc;
    }

    public String getFaultDesc() 
    {
        return faultDesc;
    }
    public void setFaultReson(String faultReson) 
    {
        this.faultReson = faultReson;
    }

    public String getFaultReson() 
    {
        return faultReson;
    }
    public void setDealMeans(String dealMeans) 
    {
        this.dealMeans = dealMeans;
    }

    public String getDealMeans() 
    {
        return dealMeans;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setAncestors(String ancestors) 
    {
        this.ancestors = ancestors;
    }

    public String getAncestors() 
    {
        return ancestors;
    }
    

    public List<EmFaultCode> getChildren() {
		return children;
	}

	public void setChildren(List<EmFaultCode> children) {
		this.children = children;
	}

	@Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("siteKey", getSiteKey())
            .append("faultCode", getFaultCode())
            .append("depart", getDepart())
            .append("eqCode", getEqCode())
            .append("eqModel", getEqModel())
            .append("faultDesc", getFaultDesc())
            .append("faultReson", getFaultReson())
            .append("dealMeans", getDealMeans())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("id", getId())
            .append("parentId", getParentId())
            .append("ancestors", getAncestors())
            .toString();
    }
}
